This dataset contains frequency of various combinations of methods of antenatal care in two clinics with the outcome being perinatal mortality.
data(ANCtable)
A data frame with 8 observations on the following 4 variables.
death
a numeric vector: 1=no, 2=yes
anc
a numeric vector indicating antenatal care type: 1=old 2=new
clinic
a numeric vector indicating clinic code: 1=clinic A, 2=clinic B
Freq
a numeric vector of frequencies
# NOT RUN {
data(ANCtable)
glm1 <- glm(death==2 ~ factor(anc) + factor(clinic),weights=Freq, family=binomial, data=ANCtable)
logistic.display(glm1)
glm2 <- glm(death==2 ~ factor(anc) + factor(clinic),weights=Freq, family=binomial, data=ANCtable)
summary(glm2)$coefficients
# }
Run the code above in your browser using DataLab